package cn.mesmile.design.decorator;

/**
 * @author zb
 * @version 1.0
 * @date 2020/11/21 10:46
 * @description
 */
public class RSCBikeDecorator extends BikeDecorator{

    private String description = ">>>>>>>>>> 增加一个防爆胎";

    private Bike bike;

    public RSCBikeDecorator(Bike bike) {
        this.bike = bike;
    }

    @Override
    public String getDescription() {
        return bike.getDescription() + ", " + description;
    }

    /**
     *  100 轮胎
     * @return
     */
    @Override
    public int getPrice() {
        return bike.getPrice() + 100;
    }
}
